<HTML><HEAD><TITLE>sumlist(+Pred, +List, ?AccIn, ?AccOut)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(apply_macros)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>sumlist(+Pred, +List, ?AccIn, ?AccOut)</H1>
Call Pred on all element of List and collect a result in Accumulator
<H3>Modules</H3>
This predicate is sensitive to its module context (tool predicate, see @/2).
<H2>Examples</H2>
<PRE>
	sumlist(plus, [1,2,3,4], 1, 10).
	sumlist(times, [1,2,3,4], 1, 24).</PRE>

</BODY></HTML>
